import request from '@/utils/request'

// 查询商品订单列表
export function commodityOrderList(pageSize,pageNum) {
    const data = {
        pageSize,
        pageNum,
    }
    return request({
      url: '/goods/commodity/order/list',
      method: 'get',
      params: data
    })
}
// 搜索商品订单列表
export function inquireCommodityOrder(data) {

  return request({
    url: '/goods/commodity/order/list',
    method: 'get',
    params: data
  })
}
// 修改商品订单
export function update(data) {

  return request({
      url: '/goods/commodity/order/',
      method: 'put',
      params: data
  })
}
// 删除商品订单
export function delCommodityOrder(id) {
  return request({
    url: '/goods/commodity/order/'+id,
    method: 'DELETE',
  })
}
// 修改commodityOrderList
export function CommodityOrder(id) {

  return request({
    url: '/goods/commodity/order/'+id,
    method: 'get',
  })
}
// 查询订单商品列表
export function orderCommodityList(pageSize,pageNum) {
  const data = {
      pageSize,
      pageNum,
  }
  return request({
    url: '/goods/order/commodity/list',
    method: 'get',
    params: data
  })
}
// 搜索订单商品列表
export function inquireOrderCommodity(data) {
  return request({
    url: '/goods/order/commodity/list',
    method: 'get',
    params: data
  })
}
// 查询打印订单列表
export function printOrderList(pageSize,pageNum) {
    const data = {
        pageSize,
        pageNum,
    }
    return request({
      url: '/facility/printOrder/list',
      method: 'get',
      params: data
    })
}
// 搜索打印订单列表
export function inquirePrintOrder(data) {

  return request({
    url: '/facility/printOrder/list',
    method: 'get',
    params: data
  })
}
// 搜索打印订单列表
export function profitsharing(id) { 
  return request({
    url: '/system/pay/notify/profitsharing/'+id,
    method: 'get', 
  })
}